package test.aat.ejinr.test;

import java.io.File;

public class NameChange {

	public static void main(String[] args) {
		File f1=new File("F:\\迅雷下载");
		if(f1.isDirectory()){
			File[] fs = f1.listFiles();
			for (File f : fs) {
				String s1=f.getName();
				s1 = s1.replaceAll("[迅雷下载www.2tu.cc]", "");
				//s1 = s1.replaceAll(".HR-HDTV.x264.AC3.Chs.Eng-Deefun", "集");
				System.out.println(s1);
				f.renameTo(new File("F:\\迅雷下载\\"+s1));
			}
		}
	}

}
